<div class="p-1.5">
    <a [routerLink]="['/shequ','create']">创建社区</a>
    <!--这里用延迟加载实现先初始化分页器，再初始化表格-->
    @defer (on immediate) {
    <app-defer-load-table (onEdit)="this.editBtnClick($event)" (onDelete)="this.deleteBtnClick($event)"
        [dataSource]="dataSource" [paginator]="paginator"></app-defer-load-table>
    }

    <app-my-paginator #paginator [totalRecordsCount]="dataSource.length"
        [pageSizeOptions]="[3, 6, 9]" class="justify-end"></app-my-paginator>
</div>